<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@include file="../../common/includeBaseSet.jsp" %>
<%@include file="../../common/includeSystemSet.jsp" %>
<%@include file="../../../common/operation_forbid.jsp" %>
<%@include file="../../../common/jsVersion.jsp" %>
<!DOCTYPE html >
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>收支管理</title>
</head>
<body>
	 <link rel="stylesheet" type="text/css"  href="${jypath}/static/ext/resources/ext-theme-gray/ext-theme-gray-all.css" />
     <script type="text/javascript" src="${jypath}/static/ext/ext-all.js"></script>
	 <script type="text/javascript" src="${jypath}/static/ext/locale/ext-lang-zh_CN.js"></script>
	 <script type="text/javascript" src="${jypath}/static/js/system/telRecord/userCallDailyReport.js?v=${jsVersion}"></script> 
	 <script type="text/javascript" src="${jypath}/static/js/system/telRecord/userCallWeekReport.js?v=${jsVersion}"></script> 
	 <script type="text/javascript" src="${jypath}/static/js/system/telRecord/userCallMonthReport.js?v=${jsVersion}"></script>
	   <script type="text/javascript" src="${jypath}/static/js/jquery/json2.js"></script> 
	 <script type="text/javascript">
	 var idata = '${permitBtn}';
	  	if(idata!=null||idata!=""){
			idata=JSON.parse(idata);
		}
	  	var finHaveReceivewWriteOff = true ; //冲销
	  	if(Ext.Array.contains(idata,"fin:haveReceive:writeOff")){
	  		finHaveReceivewWriteOff=false;
	  	}
	  	//换票
	  	var finHaveReceiveForTickets = true ; //换票
	  	if(Ext.Array.contains(idata,"fin:haveReceive:forTickets")){
	  		finHaveReceiveForTickets=false;
	  	}
	  	//退款
	  	var finHaveReceiveRefund = true ; //退款
	  	if(Ext.Array.contains(idata,"fin:haveReceive:refund")){
	  		finHaveReceiveRefund=false;
	  	}
	  		
	 Ext.onReady(function() {
		 var daily=Ext.create('component.analyze.daily');
		 var week=Ext.create('component.analyze.week');
		 var month=Ext.create('component.analyze.month');
		 var tabs2 = Ext.widget('tabpanel', {
		        renderTo: document.body,
		        activeTab: 0,
		        plain: true,
		        defaults :{
		            autoScroll: true,
		            bodyPadding: 10
		        },
		        items: [{
		        	    layout : 'fit',
		                title: '按日',
		                items: daily
		            },{
		            	layout : 'fit',
		                title: '按周',
		                items: week
		            },{
		            	layout : 'fit',
		                title: '按月',
		                items: month
		            }
		        ], 
                listeners:{ 
                    tabchange:function(tp,p){ 
                        
                    } 
                }
		    });
	 })
	 
	 </script>
</body>
</html>